package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家长对象 parent
 * 
 * @author ruoyi
 * @date 2024-02-25
 */
public class Parent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long pid;

    /** 学生表主键ID（注：一名学生可以被多位家长绑定） */
    @Excel(name = "学生表主键ID", readConverterExp = "注=：一名学生可以被多位家长绑定")
    private Long studentId;

    /** 家长姓名 */
    @Excel(name = "家长姓名")
    private String parentName;

    /** 与学生的关系 */
    @Excel(name = "与学生的关系")
    private String relationship;

    /** 职业 */
    @Excel(name = "职业")
    private String parentJob;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String parentPhone;

    /** 住址 */
    @Excel(name = "住址")
    private String parentAddress;

    /** 状态（1.正常 2.失效） */
    @Excel(name = "状态", readConverterExp = "1=.正常,2=.失效")
    private Long status;

    /** 是否删除（1.正常 2.已删除） */
    @Excel(name = "是否删除", readConverterExp = "1=.正常,2=.已删除")
    private Long isDelete;

    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }
    public void setRelationship(String relationship) 
    {
        this.relationship = relationship;
    }

    public String getRelationship() 
    {
        return relationship;
    }
    public void setParentJob(String parentJob) 
    {
        this.parentJob = parentJob;
    }

    public String getParentJob() 
    {
        return parentJob;
    }
    public void setParentPhone(String parentPhone) 
    {
        this.parentPhone = parentPhone;
    }

    public String getParentPhone() 
    {
        return parentPhone;
    }
    public void setParentAddress(String parentAddress) 
    {
        this.parentAddress = parentAddress;
    }

    public String getParentAddress() 
    {
        return parentAddress;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("studentId", getStudentId())
            .append("parentName", getParentName())
            .append("relationship", getRelationship())
            .append("parentJob", getParentJob())
            .append("parentPhone", getParentPhone())
            .append("parentAddress", getParentAddress())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
